#ifndef DAO_H
#define DAO_H
#include <QJsonArray>
#include <QFile>

class dao {
public:
  dao();
  void save(int score);
  void load();
private:
  QString file_name_{"game_data.txt"};
  QFile data_file{file_name_};
  QJsonArray history_socre_;
};

#endif
